/*
* Context.h
* iphone-gl-app
*
* Created by John Ryland on 14/06/09.
* Copyright 2009 InvertedLogic. All rights reserved.
*
*/
#ifndef CONTEXT_H
#define CONTEXT_H
#include "Game.h"
#include "Music.h"
#include "Sound.h"
#include "Texture.h"
#include "Sprite.h"
#include "PointF.h"
class Context {
public:
Context();
~Context();
void draw();
void updateAcceleration(float x, float y);
void mouseDown(int x, int y);
void mouseMove(int x, int y);
void mouseUp(int x, int y);
PointF accelerometerLocation;
bool message;
Music music;
private:
int frame;
Game *game;
// Textures
List<Texture *> textures;
// Sound effects
List<Sound *> sounds;
// Sprites
List<Sprite *> sprites;
};
#endif // CONTEXT_H